{template 'common/header'}
 <script>     
    function getLocalTime(nS) {     
       return new Date(parseInt(nS) * 1000).toLocaleString().replace(/年|月/g, "-").replace(/日/g, " ");      
    }   
    </script>  
<ul class="nav nav-tabs">
	<li><a href="{php echo $this->createWebUrl('member')}&op=playhistory">游戏记录</a></li>
	<li class="active"><a href="{php echo $this->createWebUrl('member')}&op=membermanager">会员管理</a></li>
	<li><a href="{php echo $this->createWebUrl('qrmanager')}">游戏二维码</a></li>
</ul>   
<form action="{php echo $this->createWebUrl('member')}&op=memberselect" method="post">
<div class="panel panel-default"> 
    <div class="panel-body table-responsive"> 
                          <div class="form-group">
                                <div class="input-group">
                                    <span class="input-group-addon">游戏会员昵称：</span>
                             
									<input type="text" name="membernickname" class="form-control" value="{$membernickname}"/>
                                </div>
                                
                           </div>
                          <div class="form-group">
                                <div class="input-group">
                                    <span class="input-group-addon">游戏玩家手机号：</span>
                             
									<input type="text" name="memberphonenum" class="form-control" value="{$memberphonenum}"/>
                                </div>
                                
                           </div>
 						<input type="submit" class="btn btn-primary" value="搜索"/>
    </div>
</div>
</form>
<style type="text/css">
	.navbar-inner th{
		text-align:center;
	}
</style>
<div class="panel panel-default"> 
    <div class="panel-body table-responsive text-center"> 
     <table class="table table-hover"> 
      <thead class="navbar-inner"> 
       <tr> 
        <!--<th>id</th>   -->
        <th>头像/昵称</th>  
        <th>手机号码</th> 
        <th>余额/积分/消耗积分</th> 
        <th>钓鱼次数</th>
        <th>加入时间/最后参与时间</th> 
        <th>状态</th>
        <th>操作</th>
       </tr> 
      </thead> 
      <tbody> 
      {loop $memberlist $index $value}
      <tr>  
      	
        <!--<td>{$value['id']}</td>   -->
        <td><img src="{$value['headimg']}" style="width:30px;height:30px;">{$value['nickname']}</td> 
        <td>{$value['phonenum']}</td> 
        <td>{$value['balance']}&nbsp{$value['point']}&nbsp{$value['paypoint']}</td> 
        <td>{$value['fishtime']}</td>
        
        <td><script>document.write(getLocalTime({$value['entertime']}));</script><br><script>document.write(getLocalTime({$value['lasttime']}));</script></td>

        
        <td>{if $value['status']==1}<span class="label label-success">正常</span>{else}<span class="label label-default">拉黑</span>{/if}</td>
        <td><a href="{php echo $this->createWebUrl('gamesetting',array('id'=>$value['id'],'op'=>'lahei','status'=>$value['status']))}" class="btn btn-default btn-sm" title="修改"><i class="glyphicon glyphicon-bookmark"></i></a> <a href="{php echo $this->createWebUrl('gamedelete',array('id'=>$item['id']))}" class="btn btn-default btn-sm" onclick="return confirm('确认删除此游戏?')" title="删除"><i class="glyphicon glyphicon-remove"></i></a> </td> 
       	
       </tr>    
       {/loop}  
         
      </tbody> 
     </table> 
     {$pager}
    </div> 
   </div>


{template 'common/footer'}